<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/compile.js"></script>
    <script src="./js/mvvm.js"></script>
    <script src="./js/observer.js"></script>
    <script src="./js/watcher.js"></script>
</head>
<body>

    <!--
        分析分为两种
        静态分析: 是直接看源码,一行一行往下走
        动态分析: 打断点,边执行边分析
    -->

    <div id="app">
        <p>{{msg}}</p>
    </div>

    <script>

        new MVVM({
            el: '#app',
            data: {
                msg: '我爱你'
            }
        })
        
        // 什么是数据代理?
        // 将vue2中date配置项配置的对象中的属性都代理到vm实例上,叫数据代理


    </script>
</body>
</html>